package example.constant;

import example.exception.BizException;

/**
 * Created by zhangshi on 2017/4/17.
 */
public class PreConditionsCheck {
    public static void checkArgument(boolean expression, ResponseEnum responseEnum){
        if(expression) {
            throw new BizException(responseEnum);
        }
    }
    public static void checkArgument(boolean expression, String code, String msg){
        if(expression) {
            throw new BizException(code, msg);
        }
    }
}
